//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.jim.core.packets;

import org.jim.core.ImStatus;
import org.jim.core.Status;

public class JoinGroupNotifyRespBody extends RespBody {
	private static final long serialVersionUID = 3828976681110713803L;
	private String userId;
	private String groupId;

	public JoinGroupNotifyRespBody() {
		super(Command.COMMAND_JOIN_GROUP_NOTIFY_RESP, (Status)null);
	}

	public JoinGroupNotifyRespBody(Integer code, String msg) {
		super(Command.COMMAND_JOIN_GROUP_NOTIFY_RESP, (Status)null);
		this.code = code;
		this.msg = msg;
	}

	public JoinGroupNotifyRespBody(Status status) {
		super(Command.COMMAND_JOIN_GROUP_NOTIFY_RESP, status);
	}

	public JoinGroupNotifyRespBody(Command command, Status status) {
		super(command, status);
	}

	public String getUserId() {
		return this.userId;
	}

	public JoinGroupNotifyRespBody setUserId(String userId) {
		this.userId = userId;
		return this;
	}

	public String getGroupId() {
		return this.groupId;
	}

	public JoinGroupNotifyRespBody setGroupId(String groupId) {
		this.groupId = groupId;
		return this;
	}

	public static JoinGroupNotifyRespBody success() {
		return new JoinGroupNotifyRespBody(ImStatus.C10011);
	}

	public static JoinGroupNotifyRespBody failed() {
		return new JoinGroupNotifyRespBody(ImStatus.C10012);
	}
}
